package service.mail;

import javax.mail.MessagingException;
import java.util.logging.Logger;

/**
 * @author Krasa
 */
public class MailerFake implements Mailer {
    private static Logger logger = Logger.getLogger(MailerFake.class.getName());

    public MailerFake() {
    }

    public void postMail(String recipients[], String subject, String message, String from) throws MessagingException {
        for (String string : recipients) {
            logger.info("recipients:" + string);
        }
        logger.info("subject:" + subject);
        logger.info("message:" + message);
        logger.info("from:" + from);
    }
}
